<template>
  <div id="app">
    <MyHeader title="我的tab"></MyHeader>
    <div style="margin-top: 45px">
      <component :is="comName"></component>
    </div>
    <MyTabBar :list="tabList"></MyTabBar>
  </div>
</template>

<script>
import MyHeader from "./components/MyHeader.vue";
import MyTabBar from "./components/MyTabBar.vue";
import MyGoodsList from "./view/MyGoodsList.vue";
import MyGoodsSearch from "./view/MyGoodsSearch.vue";
import MyUserInfo from "./view/MyUserInfo.vue";

export default {
  data() {
    return {
      comName: "MyGoodsList",
      tabList: [
        {
          iconText: "icon-shangpinliebiao",
          text: "商品列表",
          componentName: "MyGoodsList",
        },
        {
          iconText: "icon-sousuo",
          text: "商品搜索",
          componentName: "MyGoodsSearch",
        },
        {
          iconText: "icon-user",
          text: "我的信息",
          componentName: "MyUserInfo",
        },
      ],
    };
  },
 
  name: "App",
  components: { MyHeader, MyTabBar, MyGoodsList, MyGoodsSearch, MyUserInfo },
};
</script>

<style></style>
